Creating service in WIN XP:

 

 

 

 

 

After selecting C# Service project, you will see the screen above;

 

 

 

 

 

Under properties, click the ¡°Add Installer¡± to create a service process by VS2005;

 

 

 

 

 

Select ¡°serviceInstaller¡± & under properties, we can choose the Servicename + ¡°StartType¡± to choose Manual / Auto start;

 

 

 

 

 

 

 

Under ¡°serviceProcessInstaller¡±, ¡°Account¡± choose LocalSystem for Windows default etc;

 

 

 

After compiling;

To install the service, browse the InstallUtil.exe in .Net folder:

 

*Install : installutil servicename.exe

*Uninstall : installutil ¨Cu servicename.exe